<template>
        <div>子组件依赖注入。</div>
        <div>
            {{ parentMsg }}
        </div>
        <el-button @click="Click"> Click </el-button>
</template>

<script setup>
import { inject } from 'vue'
const  parentMsg  = inject('parentMsg')
console.log('parentMsg1...>',parentMsg);




</script>